package ru.jexp.rcp.supply.n.commands;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;

public class HandlerHideEmptyFolder extends AbstractHandler implements IHandler {

	public static final String ID = "ru.jexp.rcp.supply.n.commands.handlerhideemptyfolder";
	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		
//		ISelectionProvider provider = HandlerUtil.getActiveSite(event).getSelectionProvider();
//		if (provider != null && provider instanceof EkTreeViewer)
//		{
//			EkTreeViewer viewer = (EkTreeViewer) provider;
//			viewer.getEmptyFolderFilter().setShowEmptyTitle(!viewer.getEmptyFolderFilter().isShowEmptyTitle());
//			viewer.refresh();
//		}
		return null;
	}

}
